package com.example.adapter.demo.login.v2;

/**
 * 登录注册service
 */
public class PassportService {

    /**
     * 注册方法
     * @param username
     * @param password
     * @return
     */
    public ResultMsg regist(String username,String password){
        return  new ResultMsg(200,"注册成功",new Member());
    }


    /**
     * 登录的方法
     * @param username
     * @param password
     * @return
     */
    public ResultMsg login(String username,String password){
        Member member = new Member();
        member.setUsername(username);
        member.setPassword(password);
        return  new ResultMsg(200,"登录成功",member);
    }


}
